package com.wo.cloud.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wo.cloud.admin.entity.SysUserNotify;
import com.wo.cloud.admin.mapper.SysUserNotifyMapper;
import com.wo.cloud.admin.service.ISysUserNotifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/5/15 22:45
 * Description:
 */

@Service
public class SysUserNotifyServiceImpl extends ServiceImpl<SysUserNotifyMapper, SysUserNotify> implements ISysUserNotifyService {

    @Autowired
    private SysUserNotifyMapper userNotifyMapper;



    @Override
    public SysUserNotify updateStatus(String id) {
        SysUserNotify userNotify = new SysUserNotify();
        userNotify.setId(id);
        userNotify.setIsRead(true);
        userNotifyMapper.updateById(userNotify);
        return userNotify;
    }
}
